function fun1(i) {
    console.log("第" + i + "种：函数声明！");
}

var fun2 = function (i) {
    console.log("第" + i + "种：函数表达式！");
}

var fun3 = new Function("i", "console.log(\"第\"+i+\"种：构造函数！\")");


var fun4=function(m){
    document.write("<table>");
    for (let i = 1; i <=m; i++) {
        document.write("<tr>");
        for (let j = 1; j <=i; j++) {
            document.write("<td>");
            document.write(i + "*" + j + "=" + (i * j));
            document.write("</td>");
        }
        document.write("</tr>");
    }
    document.write("</table>");
}
fun1(1);
fun2(2);
fun3(3);
fun4(8);